package com.zjsystem.zjsy.utils;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: 王云飞
 * @name: ReadListener
 * @Date: 2024/7/2 20:27
 */
public class ExcelListener extends AnalysisEventListener<Object> {

    public static final List<List<Object>> dataList = new ArrayList<>();

    @Override
    public void invoke(Object data, AnalysisContext analysisContext) {
        dataList.add((List<Object>) data);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }

    public static List<List<Object>> getDataList(){
        return dataList;
    }
}
